<template>
  <select v-model="currentLang" @change="changeLang">
    <option value="zh-CN">简体中文</option>
    <option value="en-US">English</option>
    <option value="fr-FR">Français</option>
  </select>
</template>

<script setup>
import { loadLang } from '../locales/loader'

const currentLang = ref('zh-CN')

const changeLang = async () => {
  await loadLang(currentLang.value)
  // 更新界面语言
}
</script>